package top.blackr.folivora.common.pay.transfer.entity.wx;

import lombok.Data;
import lombok.EqualsAndHashCode;
import top.blackr.folivora.common.pay.transfer.entity.TransferRequest;

import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = true)
public class WxTransferRequest extends TransferRequest {

    private String batchName;
    private String batchRemark;
    private TransferDetail transferDetail;
    private String notifyUrl;

    @Data
    public static class TransferDetail {

        private String outDetailNo;
        private BigDecimal transferAmount;
        private String transferRemark;
        private String openid;
        /**
         * 收款方真实姓名:
         * <p>
         * 明细转账金额<0.3元时，不允许填写收款用户姓名
         * <p>
         * 明细转账金额 >= 2,000元时，该笔明细必须填写收款用户姓名
         */
        private String userName;
    }
}
